#include "Product.h"                                                                                                                                /** MSH on A3 **/
#include "Utilities.h"                                                                                                                              /** MSH on A3 **/

string Product::display() const                                                                                                                     /** MSH on A3 **/
{                                                                                                                                                   /** MSH on A3 **/
	return (
		//Utilities::padLeft(Utilities::convertInt(prod_id), Utilities::PRD_ID_LENGTH) + "\t" + Utilities::padLeft(Utilities::convertInt(cat_id), Utilities::PRD_CATID_LENGTH) + "\t" + Utilities::padRight(prod_name, Utilities::PRD_NAME_LENGTH) + "\t" + Utilities::padLeft(Utilities::convertDouble(prod_price), Utilities::PRD_PRICE_LENGTH)
		Utilities::padRight(Utilities::convertInt(prod_id), Utilities::PRD_ID_LENGTH) + "\t" + Utilities::padRight(Utilities::convertInt(cat_id), Utilities::PRD_CATID_LENGTH) + "\t" + Utilities::padRight(prod_name, Utilities::PRD_NAME_LENGTH) + "\t" + Utilities::padRight(Utilities::convertDouble(prod_price), Utilities::PRD_PRICE_LENGTH)
	);																																				/** MSH on A3 **/
}                                                                                                                                                   /** MSH on A3 **/

void Product::setPrdPrice (double prdPrice) {                                                                                                       /** MSH on C1 **/
    prod_price = prdPrice;                                                                                                                          /** MSH on C1 **/
}                                                                                                                                                   /** MSH on C1 **/

int Product::get_prod_id(){ 		/* AGV on S3 */
	return prod_id;
}

int Product::get_cat_id(){	 		/* AGV on S3 */
	return cat_id;
}

string Product::get_prod_name(){ 	/* AGV on S3 */
	return prod_name;
}

double Product::get_prod_price(){ 	/* AGV on S3 */
	return prod_price;
}

